@extends('admin.index')
@section('con')
    @include('common.message')
    @include('common.delete')
    <ol class="breadcrumb">
        <li class="active">添加</li>
        <li class="active">政治</li>
        <li class="active">辨析题</li>
    </ol>
    <a href="{{ url('admin/polity/analysis/create') }}" class="btn btn-primary btn-block" style="margin-bottom: 20px;">新增</a>
    @foreach($data as $v)
        <div class="alert alert-success alert-dismissible animated flipInX" role="alert" style="text-align: left;">
            <h4><i class="fa fa-question-circle"></i> {{ $v->title }}</h4>
            <div style="margin-bottom: 10px;">{!! $v->answer !!}</div>
            <button class="btn btn-danger" onclick="del('{{ url('admin/polity/analysis/'.$v->id) }}')">删除</button>
            <a href="{{ url('admin/polity/analysis/'.$v->id.'/edit') }}" class="btn btn-default">修改</a>
        </div>
    @endforeach
    {{ $data->links() }}
@endsection